package com.wzx.data.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.wzx.basics.baseClass.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 收藏 实体类
 * @author wzx
 * @since 2023/03/20
 */
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "a_collection")
@TableName("a_collection")
@ApiModel(value = "收藏")
public class Collection extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 学生id
     */
    private String userId;

    /**
     * 课程Id
     */
    private String courseId;

    /**
     * 文件夹
     */
    private String folder_id;
    /**
     * 搜索关键字
     */
    @TableField(exist = false)
    private String keyword;
}